<!DOCTYPE HTML>
<html>
<head>
<title>后台管理</title>
<link rel="stylesheet" type="text/css" href="/static/admin/font/iconfont/iconfont.css">
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/Bootstrap/5.0.1/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="/static/admin/style/style.css" />
</head>
<body>
<div class="main">
  <ol class="breadcrumb">
    <li class="breadcrumb-item iconfont icon-home">首页</li>
    <li class="breadcrumb-item active">支付记录</li>
  </ol>
  <div class="list-info mt-3">
    <span>共有 <strong>{{$payment_logs->total()}}</strong> 条数据</span>
  </div>
  <table class="table table-bordered table-hover text-center mt-3">
    <thead>
      <tr>
      	<th>订单编号</th>
        <th>金额</th>
        <th>用户ID</th>
        <th>三方平台编号</th>
        <th>描述</th>
        <th>状态</th>
        <th>创建时间</th>
      </tr>
    </thead>
    <tbody>
      @foreach($payment_logs as $value)
      <tr>
      	<td>{{$value->number}}</td>
        <td>{{$value->price}}</td>
        <td>{{$value->user_id}}</td>
        <td>{{$value->trade_no}}</td>
        <td>{{$value->body}}</td>
        <td>
          @if($value->status == 1)
          <span class="badge bg-success">已支付</span>
          @else
          <span class="badge bg-secondary"> 未支付</span>
          @endif
        </td>
        <td>{{ Str::limit($value->created_at, 16, '') }}</td>
      </tr>
      @endforeach
    </tbody>
  </table>
  <div class="page my-3">{{ $payment_logs->appends(Request()->all())->render() }}</div>
</div>
</body>
</html>